home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / dnav14.zip / DNAV.MAC < prev    next >
Text File  |  1989-09-27  |  4KB  |  72 lines

  1. ;
  2. ;   Sample macro file. 
  3. ;     (DNAV.MAC) in the current directory or on the PATH (see DNAV.DOC). 
  4. ;
  5. ;   This is a plain ASCII text file, modify it to suit your own needs.
  6. ;             All after the semicolon ; is ignored.
  7. ;
  8. ;   The first type of macro allows you to define the program action when 
  9. ;     you press an alt key with an alphabetic or function key of your choice.
  10. ;     So you can specify one-key "point and shoot" actions.
  11. ;     The ^ is replaced by the file under the cursor.  
  12. ;     These macros "shell" to DOS and return to DNAV when the action is done:
  13. ;
  14. alt-x   ^                  ^4; Execute file under cursor
  15. alt-z   pkunzip    ^         ; Call 'pkunzip'   
  16. alt-v   fv     ^           ^4; Call Buerg's 'fv' view arc, zip, lzh, etc.
  17. alt-p   copy ^ prn         ; print file under the cursor
  18. ;
  19. ;   The following two impractical macros are used in the DNAV.DOC tutorial  
  20. alt-t   type     ^         ^4;  TYPE the file to the screen
  21. f       find    ""       ^   ; Find, for "fill in the blank" example 7
  22. ;
  23. ;   Other possibilities
  24. ;
  25. ;alt-a   pkxarc      ^        ; Call program 'pkxarc' to expand *.arc files
  26. ;alt-l   lharc e  ^           ; "unmelt" .lzh type archive under the cursor
  27. ;alt-F5 list c:indx\space89  ; Macro without reference to cursor file 
  28. ;alt-w  swap  wp  ^    ;Call Word Perfect using Niko Mak's SWAP.COM to 
  29. ;                                reduce DNAV memory to 2k.
  30. ;
  31. ;   At times, the above form is too simple, so:
  32. ;      For the following macros (starting with a letter),
  33. ;     the macro name (left column) is entered on 
  34. ;     the DOS line after a filename is selected with the F6 key 
  35. ;     The ^ is replaced by file previously selected with F6.  See dnav.doc.
  36. ;
  37. ;mfc  mf -u                     ^DP*.c   ; Search C files, this dir 
  38. ;mfw  mf -ub                    ^DP*.wk? ;  Search for string within worksheets
  39. ;cma  chmod  ^  -A                     ;  Turn archive bit off
  40. ;aa   arca   dnav13   ^                ;Add a member to an arc file
  41. ;as   arce   ^ *.doc  /p               ; Pull *.doc to screen
  42. ;pks  pkxarc /c ^  *.doc               ; doc file to screen
  43. ;pkr  pkxarc /c ^  read*.*             ; readme file to screen
  44. ;pkl  pkxarc /v  ^   >>arclist         ; Build an Arclist for viewing
  45. ;akv  list  arclist                    ; Now look at it
  46. ;su   sort | uniq <^  >^N.s            ;Sort and drop dups
  47. ;db   dropblnk ^  ^N.d                 ; Strip blank lines 
  48. ;cl1  cl /J    -F 4000 -Zi ^           ;Microsoft cl /J with debug
  49. ;
  50. ;  This is a comment line.  The following macros (starting with a
  51. ;    number) allow a shorthand when starting DNAV at the DOS prompt.
  52. ;         
  53. ;  A number as the first term after the program name indicates that a 
  54. ;    program start macro is requested.  The number is simply replaced
  55. ;    by the terms to its right in the specification (see below) up to 
  56. ;    the ; .  You may add your own terms after the number.  
  57. ;  For example:
  58. ;     "dnav  1"  is identical to "dnav c:\ -i"
  59. ;     "dnav  4  whereis.*  hereis.* nowwhat.???"   ; whereis 3 names, 3 drives
  60. ;     "dnav  5"  will show files from five directories      
  61. ;
  62. 1 c:\ -i                   ;  show entire c: drive
  63. 2  c:\dnav  *.c  *.h  *.asm ;  show source files only
  64. 3  c:\ d:\ e:\  -6         ;  show root directory of three drives
  65. 4  c:\ d:\ e:\  -i
  66. 05 c:\pd c:\indx c:\c-sup d:\pd  d:\temp  ; show 5 that 'go together'
  67. 8  c:\ d:\ e:\ -i *.lzh *.arc *.zip       ; Show all sets 
  68. 10   .   -i                 ;  show current subdirectory and below
  69. 20   .  e:\stan   -i        ; For a LAN: current dir plus my Network node  
  70. 30   .  e:\stan  f:\stan -i ; For a LAN: current dir plus my Network nodes 
  71. 99 c:\ -ib                  ;  show c: drive, only files that need backup
  72.